<form id="pagerForm" action="admin.php?mod=backup&action=index">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="backup_id" />
	<input type="hidden" name="orderDirection" value="backup_id" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" method="post" action="admin.php?mod=backup&action=index" onsubmit="return dwzSearch(this);">
	<div class="searchBar">
        <p style="color: red;">{lang backup_intro}</p>
	</div>
	</form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar" style="">
            <li><a class="add" href="admin.php?mod=backup&do=backup_hand" target="ajaxTodo" title="{lang backup_hand_confirm}"><span>{lang backup_hand}</span></a></li>
            <li><a class="delete" href="admin.php?mod=backup&do=delete&backup_id={{backup_id}}" target="ajaxTodo" title="{lang confirm_delete}"><span>{lang delete}</span></a></li>
            <li><a class="edit" href="admin.php?mod=backup&do=backup_restore&backup_id={{backup_id}}" target="ajaxTodo" title="{lang confirm_restore}"><span>{lang backup_restore}</span></a></li>
		</ul>
	</div>
	<table class="table" layoutH="138" targetType="dialog" width="100%">
            <thead>
                <tr>
                    <th orderfield="cmds_id">{lang backup_id}</th>
                    <th>{lang backup_filename}</th>
                    <th>{lang create_dateline}</th>
                </tr>
            </thead>
            <tbody>
            <!--{loop $page_array $pkey $pvalue}-->
            <tr target="backup_id" rel="{$pkey}">
                <td>{$pkey}</td>
                <td><a href="{$pvalue[path]}{$pvalue[files_sql]}">{$pvalue[files_sql]}</a>&nbsp;/&nbsp;<a href="{$pvalue[path]}{$pvalue[files_www]}">{$pvalue[files_www]}</a></td>
                <td>{eval echo date('Y-m-d H:i',filemtime(SITE_ROOT.$pvalue[path].$pvalue[files_sql]));}</td>
            </tr>
            <!--{/loop}-->
            </tbody>
	</table>
	<div class="panelBar" style="display:none;">
		<div class="pages">
			<span>{lang perpage}</span>
			<select name="numPerPage" onchange="dwzPageBreak({targetType:'navTab', data:{numPerPage:this.value}})">
                            <option <!--{if $numPerPage==10}--> selected<!--{/if}--> value="10">10</option>
                            <option <!--{if $numPerPage==20}--> selected<!--{/if}--> value="20">20</option>
                            <option <!--{if $numPerPage==50}--> selected<!--{/if}--> value="50">50</option>
                            <option <!--{if $numPerPage==100}--> selected<!--{/if}--> value="100">100</option>
			</select>
			<span>, {lang total}{$pagetotal}</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$pagetotal}" numPerPage="{$numPerPage}" pageNumShown="5" currentPage="{$pageNum}"></div>
	</div>
</div>